package javacource.redis.controller;

import javacource.redis.service.DealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create by chenhd on 2021/10/23.
 */
@RestController
@RequestMapping("/")
public class DealController {
    @Autowired
    DealService dealService;

    @RequestMapping("/decrease")
    public void decrease(@RequestParam("itemId") String itemId) {
        dealService.decrease(itemId);
    }


}
